home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / cvs-1.8 / cvs-1 / cvs-1.8.1 / src / watch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-06  |  2.0 KB  |  57 lines

  1. /* Interface to "cvs watch add", "cvs watchers", and related features
  2.  
  3.    This program is free software; you can redistribute it and/or modify
  4.    it under the terms of the GNU General Public License as published by
  5.    the Free Software Foundation; either version 2, or (at your option)
  6.    any later version.
  7.  
  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.
  12.  
  13.    You should have received a copy of the GNU General Public License
  14.    along with this program; if not, write to the Free Software
  15.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16.  
  17. extern const char *const watch_usage[];
  18.  
  19. /* Flags to pass between the various functions making up the
  20.    add/remove code.  All in a single structure in case there is some
  21.    need to make the code reentrant some day.  */
  22.  
  23. struct addremove_args {
  24.     /* A flag for each watcher type.  */
  25.     int edit;
  26.     int unedit;
  27.     int commit;
  28.  
  29.     /* Are we adding or removing (non-temporary) edit,unedit,and/or commit
  30.        watches?  */
  31.     int adding;
  32.  
  33.     /* Should we add a temporary edit watch?  */
  34.     int add_tedit;
  35.     /* Should we add a temporary unedit watch?  */
  36.     int add_tunedit;
  37.     /* Should we add a temporary commit watch?  */
  38.     int add_tcommit;
  39.  
  40.     /* Should we remove all temporary watches?  */
  41.     int remove_temp;
  42.  
  43.     /* Should we set the default?  This is here for passing among various
  44.        routines in watch.c (a good place for it if there is ever any reason
  45.        to make the stuff reentrant), not for watch_modify_watchers.  */
  46.     int setting_default;
  47. };
  48.  
  49. /* Modify the watchers for FILE.  *WHAT tells what to do to them.
  50.    If FILE is NULL, modify default args (WHAT->SETTING_DEFAULT is
  51.    not used).  */
  52. extern void watch_modify_watchers PROTO ((char *file,
  53.                       struct addremove_args *what));
  54.  
  55. extern int watch_add PROTO ((int argc, char **argv));
  56. extern int watch_remove PROTO ((int argc, char **argv));
  57.